package com.lanling.customercenter.controller;

import com.lanling.customercenter.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "customer")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping(value = "user")
    public String user() {
        return userService.getUser();
    }
}